package com.cisdi.blog.dao;

import com.cisdi.blog.entity.Comment;
import com.cisdi.blog.entity.Type;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 评论
 * @author pengyangyan
 * @version 1.0.0
 * @date 2020年03月18日 09:44:00
 */
@Repository
public interface CommentRepository extends JpaRepository<Comment,Long> {

    List<Comment> findByBlogId(Long blogId, Sort sort);
}
